#ifndef WAIT_RESOPNSE
#define WAIT_RESOPNSE

typedef struct node{
	struct timeval tv;//存放指令发送的时间
	unsigned char serial_number; //存放指令的编号 便于识别响应
	char mac[8]; 
	int cmd_type;
	struct node *next;
}wait_res_node;

extern unsigned char WAIT_RES_ARRAY[256];

void insert_node(char *pkg_mac, int cmd_type, unsigned char serial_number);
void loop_wait_res_list(void);

#endif